package com.doubao.doubao_admin.service.cService;

import com.doubao.doubao_admin.model.entity.BmsTip;
import com.doubao.doubao_admin.mapper.BmsTipMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service

public class BmsTipService {
    @Resource
    private BmsTipMapper bmsTipMapper;
    public BmsTip getRandomTip(){

        BmsTip todayTip = null;
        try {
            todayTip = bmsTipMapper.getRandomTip();
        } catch (Exception e){
            log.info("tip转化失败");
        }
        return todayTip;
    }
}
